package com.xinyue.user.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.xinyue.user.pojo.Comment;

@Mapper
public interface CommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Comment record);

    Comment selectByPrimaryKey(Integer id);

    List<Comment> selectAll();

    int updateByPrimaryKey(Comment record);
    
    @Select("select * from xy_comment where nid = #{nid} order by date desc")
    List<Comment> selectByNid(Integer nid);
    
    
    
    
    
    
    
    
    
    
    
}